package com.aaa.controller;

import com.aaa.entity.RegisteredItem;
import com.aaa.service.RegisteredItemService;
import com.aaa.vo.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @BelongsPackage: com.aaa.controller
 * @Description: 1.0
 * @CreateTime: 2023-03-27  08:59
 * @Author: ql
 */
@RestController
@RequestMapping("system/RegisteredItem")
public class RegisteredItemController {

    @Autowired
    private RegisteredItemService registeredItemService;

    @PostMapping("queryByRegItemName")
    public Result<List<RegisteredItem>> queryByRegItemName(String regItemName){

        return registeredItemService.queryByRegItemName(regItemName);
    }
}
